<template>
	<view class="swiper">
		<u-swiper :list="list3" height="175" indicator indicatorMode="line" circular></u-swiper>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list3: [

				],
			}
		},
		mounted() {
			this.getList()
		},
		methods: {
			getList() {
				uni.request({
					url: "/api/index/banner",
					method: "GET"
				}).then(res => {
					// console.log(res);
					let list = res.data.data
					list.forEach((item, index) => {
						this.list3.push(item.image)
					})
					// console.log(this.list3);
				})
			}
		}
	}
</script>
<style lang="scss" scoped>
	.swiper {
		width: 100%;
		height: 40vw;
		margin-top: 2vw;

		img {
			width: 100%;
			height: 100%;
		}
	}
</style>